﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;

namespace mbine.msgc.controls
{
    /// <summary>
    /// Interaction logic for UCChatBox.xaml
    /// </summary>
    public partial class UCChatBox : UserControl
    {
        public string ChatData { get; set; }
        public event EventHandler EventSendChat;

        public UCChatBox()
        {
            InitializeComponent();
        }

        private void rtBOx_PreviewKeyUp(object sender, KeyEventArgs e)
        {
            if(e.Key == Key.Enter){
                if (EventSendChat != null)
                    EventSendChat(this, null);
            }
        }
    }
}
